package com.bestcem.xm.qdes.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bestcem.xm.component.mybatis.base.BaseEntity;
import com.bestcem.xm.component.mybatis.format.String2JacksonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ds_qdes_projectextraattr")
public class QdesProjectExtraAttr extends BaseEntity {

    @TableId(value = "id")
    private String id;

    /**
     * 问卷id
     */
    @TableField(value = "project_id")
    private String projectId;

    /**
     * 问卷自定义属性
     */
    @TableField(value = "custom_attr")
    @JsonSerialize(using = String2JacksonSerializer.class)
    private String customAttr;
}